package net.zhengxinyun.performance.service.exam.select;



import net.zhengxinyun.performance.entity.OptionClasEntity;
import net.zhengxinyun.performance.filter.ExamIndexFilter;
import net.zhengxinyun.performance.filter.OptionClasFilter;
import net.zhengxinyun.performance.mapper.exam.selectOp.OptionClasMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
public class OptionClasServiceImpl implements OptionClasService{


    @Autowired
    private OptionClasMapper clasMapper;

    @Override
    public List<OptionClasFilter> query(OptionClasFilter filter) {
        return clasMapper.query(filter);
    }

    @Override
    public int queryForCount(OptionClasFilter filter) {
        return clasMapper.queryForCount(filter);
    }

    @Override
    public OptionClasEntity selectByPrimaryKey(Long id) {
        return clasMapper.selectByPrimaryKey(id);
    }

    @Override
    public int deleteByPrimaryKey(Long ind) {
        return clasMapper.deleteByPrimaryKey(ind);
    }

    @Override
    public int insert(OptionClasEntity entity) {
        return clasMapper.insert(entity);
    }

    @Override
    public int insertSelective(OptionClasEntity entity) {
        return clasMapper.insertSelective(entity);
    }

    @Override
    public int updateByPrimaryKeySelective(OptionClasEntity entity) {
        return clasMapper.updateByPrimaryKeySelective(entity);
    }

    @Override
    public int updateByPrimaryKey(OptionClasEntity entity) {
        return clasMapper.updateByPrimaryKey(entity);
    }
}
